﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UFSSDesktopApp
{
    public partial class FormMain : Form
    {
        UFSSservicereference.UserCreds ucreds;
        
        UFSSservicereference.UFSSserviceSoapClient ussc;
        
        public FormMain(UFSSservicereference.UFSSserviceSoapClient sc, UFSSservicereference.UserCreds uc)
        {
            
            InitializeComponent();
            ussc = sc;
            ucreds = uc;
        }

        private void btnLogout_Click(object sender, EventArgs e)
        {
            FormLogin.ActiveForm.Show();
            Form.ActiveForm.Close();
        }

        private void btnUploadFile_Click(object sender, EventArgs e)
        {
            Form.ActiveForm.Hide();
            FormUpload fu = new FormUpload(ussc, ucreds);
            fu.Show();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {

        }

        private void btnManageSubs_Click(object sender, EventArgs e)
        {
            Form.ActiveForm.Hide();
            FormSubscription fs = new FormSubscription(ussc, ucreds);
            fs.Show();
        }

        private void btnManageFriends_Click(object sender, EventArgs e)
        {
            Form.ActiveForm.Hide();
            FormFriends ff = new FormFriends(ussc, ucreds);
            ff.Show();
        }

        private void gbActions_Enter(object sender, EventArgs e)
        {

        }

        private void btnManageFiles_Click(object sender, EventArgs e)
        {
            Form.ActiveForm.Hide();
            FormFiles ff = new FormFiles(ussc, ucreds);
            ff.Show();
        }
    }
}
